﻿'///////////////////////////////////////////////////////////////
' This is generated code. If you modify this code, be aware
' of the fact that when you re-generate the code, your changes
' are lost. If you want to keep your changes, make this file read-only
' when you have finished your changes, however it is recommended that
' you inherit from this class to extend the functionality of this generated
' class or you modify / extend the templates used to generate this code.
'//////////////////////////////////////////////////////////////
' Code is generated using LLBLGen Pro version: 2.6
' Code is generated on: lundi 28 septembre 2009 23:24:54
' Code is generated using templates: SD.TemplateBindings.SharedTemplates.NET20
' Templates vendor: Solutions Design.
' Templates version: 
'///////////////////////////////////////////////////////////////
Imports System
Imports SD.LLBLGen.Pro.ORMSupportClasses


' __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
' __LLBLGENPRO_USER_CODE_REGION_END
Namespace Aricie.DNN.Services.Url.FriendlyUrl.HelperClasses
	''' <summary>
	''' Singleton implementation of the FieldInfoProvider. This Class Is the singleton wrapper through which the actual instance Is retrieved.
	''' </summary>
	''' <remarks>It uses a Single instance of an internal Class. The access isn't marked with locks as the FieldInfoProviderBase class is threadsafe.</remarks>
	Friend NotInheritable Class FieldInfoProviderSingleton
#Region "Class Member Declarations"
		Private Shared ReadOnly _providerInstance As IFieldInfoProvider = New FieldInfoProviderCore()
#End Region
		
		''' <summary>Private ctor To prevent instances of this Class.</summary>
		Private Sub New()
		End Sub

		''' <summary>Dummy Static constructor To make sure threadsafe initialization Is performed.</summary>
		Shared Sub New()
		End Sub

		''' <summary>Gets the singleton instance of the FieldInfoProviderCore</summary>
		''' <returns>Instance of the FieldInfoProvider.</returns>
		Public Shared Function GetInstance() As IFieldInfoProvider 
			Return _providerInstance
		End Function
	End Class

	''' <summary>Actual implementation of the FieldInfoProvider. Used by singleton wrapper.</summary>
	Friend Class FieldInfoProviderCore 
		Inherits FieldInfoProviderBase
		''' <summary>Initializes a New instance of the <see cref="FieldInfoProviderCore"/> Class.</summary>
		Friend Sub New()
			Init()
		End Sub

		''' <summary>Method which initializes the internal datastores</summary>
		Private Sub Init()
			MyBase.InitClass( (2 + 0))
			InitFupPatternMappingEntityInfos()
			InitFupUrlMappingEntityInfos()

			MyBase.ConstructElementFieldStructures(InheritanceInfoProviderSingleton.GetInstance())
		End Sub

		''' <summary>Inits FupPatternMappingEntity's FieldInfo objects</summary>
		Private Sub InitFupPatternMappingEntityInfos()
			MyBase.AddElementFieldInfo("FupPatternMappingEntity", "PatternUrl", GetType(System.String), True, False, False, False, CInt(FupPatternMappingFieldIndex.PatternUrl), 2000, 0, 0)
			MyBase.AddElementFieldInfo("FupPatternMappingEntity", "FriendlyUrl", GetType(System.String), False, True, False, False, CInt(FupPatternMappingFieldIndex.FriendlyUrl), 2000, 0, 0)
		End Sub
		''' <summary>Inits FupUrlMappingEntity's FieldInfo objects</summary>
		Private Sub InitFupUrlMappingEntityInfos()
			MyBase.AddElementFieldInfo("FupUrlMappingEntity", "FriendlyUrl", GetType(System.String), True, False, False, False, CInt(FupUrlMappingFieldIndex.FriendlyUrl), 2000, 0, 0)
			MyBase.AddElementFieldInfo("FupUrlMappingEntity", "RealUrl", GetType(System.String), False, False, False, False, CInt(FupUrlMappingFieldIndex.RealUrl), 2000, 0, 0)
			MyBase.AddElementFieldInfo("FupUrlMappingEntity", "CreatedDate", GetType(System.DateTime), False, False, False, False, CInt(FupUrlMappingFieldIndex.CreatedDate), 0, 0, 0)
		End Sub

	End Class
End Namespace







